import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import '@/utils/rem'
import { i18n } from './i18n/index' //国际化
// 导入默认样式
import '@/assets/base/base.css'
// 适配
import 'amfe-flexible'
import '@/utils/uniRouter' //引入指令
import '@/components/index' //引入全局封装
//引入vant
import Vant from 'vant';
import 'vant/lib/index.css';

// 引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import '@/page/components/index'

Vue.use(Vant);
Vue.config.productionTip = false
Vue.use(ElementUI);

new Vue({
  router,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  store,
  i18n, //使用国际化
  render: h => h(App)
}).$mount('#app')
